﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;


namespace ChatServerService
{
    [RunInstaller(true)]
    public partial class ProjectInstaller : System.Configuration.Install.Installer
    {
        public ProjectInstaller()
        {
            InitializeComponent();
        }

        // Override the 'Install' method of the Installer class.
        public override void Install(IDictionary mySavedState)
        {
            base.Install(mySavedState);
            try
            {
                System.Diagnostics.Process.Start("netsh http add urlacl url=http://+:8080/ChatServerService user=SYSTEM");
            }
            catch { }
        }
        
    }
}
